package com.hsylient.javase.chapter01;

import org.junit.Test;

public class MyDouble {
    @Test
    public void testField() {
        System.out.println("double类型所占空间大小(字节)：" + Double.BYTES);
        System.out.println("double类型所占空间大小(bit)：" + Double.SIZE);
        System.out.println("double类型的最大值：" + Double.MAX_VALUE);
        System.out.println("double类型的最小值：" + Double.MIN_VALUE);
    }

    @Test
    public void testMethod() {
        System.out.println(Double.toHexString(100.0));
    }
}
